{% extends 'page-builder-base.twig' %}
{% set bodyClasses = 'page-contact' %}
{% set bodyExtra = 'onload="initialize()"'%}
{% set formId = 2182 %}
{% set formDescriptor = app.formMailer.getForm( formId ) %}


{% block title %}
<title>{{title}} | {{siteTitle}}</title>
{% endblock %}




{% block content %}
<div class="content">
    <div class="content-blocks">

    {% block contentBlocks %}
    {% if page.metadata.heading %}
        <h1>{{ page.metadata.heading }}</h1>
    {% endif %}
    
    {%for contentBlock in page.contentBlocks %}
        {% block contentBlock %}
        <div class="content-block id-{{contentBlock.id}}">
            {% if contentBlock.title %}
                <h2>{{contentBlock.title}}</h2>
            {% endif %}
            {{contentBlock.content|raw}}
        </div>
        {% endblock%}
    {% endfor%}
    {% endblock%}
    
    <div class="map" id="map_contact"></div>
    
    
    
    </div>
</div>
{% endblock %}







{% block aside %}
<aside>
{% if formDescriptor is defined %}
			            {% if not formDescriptor.sent %}
			                <form method="post" {{ form_enctype(formDescriptor.form) }} class="contact-form" novalidate>
			                    {{ formDescriptor.formHeading|default()|raw}}
			                	
			                	<ul>
			    	                <li>
			    	                    {{ form_label(formDescriptor.form.name, label|default(null),{'label_attr':{'id':''}} ) }}
			    	                    {{ form_widget(formDescriptor.form.name,{'attr':{'class':''}}) }}
			    	                    {{ form_errors(formDescriptor.form.name) }}
			    	                </li>   
			    	                
			    	                <li>
			    	                    {{ form_label(formDescriptor.form.email, label|default(null),{'label_attr':{'id':''}} ) }}
			    	                    {{ form_widget(formDescriptor.form.email,{'attr':{'class':''}}) }}
			    	                    {{ form_errors(formDescriptor.form.email) }}
			    	                </li>   
			    	                
			    	                <li>
			    	                    {{ form_label(formDescriptor.form.message, label|default(null),{'label_attr':{'id':''}} ) }}
			    	                    {{ form_widget(formDescriptor.form.message,{'attr':{'class':''}}) }}
			    	                    {{ form_errors(formDescriptor.form.message) }}
			    	                </li>   
			    	                
			    	                <li{% if not form_errors(formDescriptor.form.antispam) %} class="visuallyhidden"{% endif %}>
			    	                     {{ form_label(formDescriptor.form.antispam, label|default(null),{'label_attr':{'id':''}} ) }}
			    	                     {{ form_widget(formDescriptor.form.antispam,{'attr':{'class':''}}) }}
			    	                     {{ form_errors(formDescriptor.form.antispam) }}
			    	                </li>
			    	                <li>     
			    	                	{{ form_widget(formDescriptor.form._token) }}
			    		                <input  type="submit" id="submit" name="submit" value="Send your enquiry &rsaquo;" class="button" />
			    	                </li>
			                    </ul>
			                </form>
			            {% else %}
			                <div class="thankyou contact-form">
			                <h3>{{ formDescriptor.thankyouHeading|raw}}</h3>
			                </div>
			            {% endif %}
			        {% endif %} 
</aside>
{% endblock %}





{% block externalFoot %}
    {{ parent() }}
    <script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> 
    {% if formDescriptor is defined and formDescriptor.sent %}
       <!-- Google Code for Enquiry Submission Conversion Page -->
        <script type="text/javascript">
        /* <![CDATA[ */
        var google_conversion_id = 981915593;
        var google_conversion_language = "en";
        var google_conversion_format = "2";
        var google_conversion_color = "ffffff";
        var google_conversion_label = "vgQSCOfTmggQya-b1AM";
        var google_conversion_value = 0;
        var google_remarketing_only = false;
        /* ]]> */
        </script>
        <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
        </script>
        <noscript>
        <div style="display:inline;">
        <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/981915593/?value=0&amp;label=vgQSCOfTmggQya-b1AM&amp;guid=ON&amp;script=0"/>
        </div>
        </noscript>
   {% endif %}
{% endblock %}
